package com.ruoyi.monitor.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.monitor.mapper.MonitorWeldMapper;
import com.ruoyi.monitor.domain.MonitorWeld;
import com.ruoyi.monitor.service.IMonitorWeldService;
import com.ruoyi.common.core.text.Convert;

/**
 * 焊接参数实时监控Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-12
 */
@Service
public class MonitorWeldServiceImpl implements IMonitorWeldService 
{
    @Autowired
    private MonitorWeldMapper monitorWeldMapper;

    /**
     * 查询焊接参数实时监控
     * 
     * @param id 焊接参数实时监控主键
     * @return 焊接参数实时监控
     */
    @Override
    public MonitorWeld selectMonitorWeldById(Long id)
    {
        return monitorWeldMapper.selectMonitorWeldById(id);
    }

    /**
     * 查询焊接参数实时监控列表
     * 
     * @param monitorWeld 焊接参数实时监控
     * @return 焊接参数实时监控
     */
    @Override
    public List<MonitorWeld> selectMonitorWeldList(MonitorWeld monitorWeld)
    {
        return monitorWeldMapper.selectMonitorWeldList(monitorWeld);
    }

    /**
     * 新增焊接参数实时监控
     * 
     * @param monitorWeld 焊接参数实时监控
     * @return 结果
     */
    @Override
    public int insertMonitorWeld(MonitorWeld monitorWeld)
    {
        return monitorWeldMapper.insertMonitorWeld(monitorWeld);
    }

    /**
     * 修改焊接参数实时监控
     * 
     * @param monitorWeld 焊接参数实时监控
     * @return 结果
     */
    @Override
    public int updateMonitorWeld(MonitorWeld monitorWeld)
    {
        return monitorWeldMapper.updateMonitorWeld(monitorWeld);
    }

    /**
     * 批量删除焊接参数实时监控
     * 
     * @param ids 需要删除的焊接参数实时监控主键
     * @return 结果
     */
    @Override
    public int deleteMonitorWeldByIds(String ids)
    {
        return monitorWeldMapper.deleteMonitorWeldByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除焊接参数实时监控信息
     * 
     * @param id 焊接参数实时监控主键
     * @return 结果
     */
    @Override
    public int deleteMonitorWeldById(Long id)
    {
        return monitorWeldMapper.deleteMonitorWeldById(id);
    }
}
